package com.gs.seckill.mapper;

import com.gs.gaosheng.domain.GsGoods;
import com.gs.gaosheng.domain.GsSecKill;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SecKillMapper {

  List<GsGoods> findByStoreDesc();

  void updateGoodsStatus(Long goodsId);

  List<GsSecKill> flashSale(@Param("secKillUserId") Long secKillUserId, @Param("secKillGoodsId")Long secKillGoodsId);

  void updateStatus(Long goodsId);
}
